package cn.signalpha.modules.resource.config;

import cn.signalpha.modules.resource.service.IOssService;
import lombok.AllArgsConstructor;
import cn.signalpha.core.oss.props.OssProperties;
import cn.signalpha.modules.resource.builder.oss.OssBuilder;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * Oss配置类
 */
@AllArgsConstructor
@Configuration(proxyBeanMethods = false)
public class OssConfiguration {

	private final OssProperties ossProperties;

	private final IOssService ossService;

	@Bean
	public OssBuilder ossBuilder() {
		return new OssBuilder(ossProperties, ossService);
	}

}
